<?php

namespace Jinxing\Admin\Http\Requests\Admin\Admins;

use Jinxing\Admin\Http\Requests\Request;

class UpdatePasswordRequest extends Request
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'old_password'          => 'required|string|min:6',
            'password'              => 'required|string|min:6',
            'password_confirmation' => 'required|string|min:6',
        ];
    }

    public function attributes()
    {
        return [
            'old_password'          => '旧密码',
            'password'              => '新密码',
            'password_confirmation' => '确认密码',
        ];
    }
}